package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.WarningAlarm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 报警数据 Mapper 接口
 * </p>
 *
 * @author zhangfei
 * @since 2023-02-09
 */
@Mapper
@Repository
public interface WarningAlarmMapper extends BaseMapper<WarningAlarm> {


    List<WarningAlarm> selectAllWarningAlarm(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("imei") String imei,
                                             @Param("equipmentType") String equipmentType, @Param("equipmentModel") String equipmentModel,
                                             @Param("equipmentManufacturer") String equipmentManufacturer, @Param("disposeStatus") Integer disposeStatus,
                                             @Param("custPhone") String custPhone, @Param("custName") String custName, @Param("custAddress") String custAddress,
                                             @Param("spId") String spId, @Param("templateType") int templateType,@Param("concentrationSort") Integer concentrationSort,
                                             @Param("subsCode")String subsCode, @Param("orgCode")String orgCode,@Param("customerAddress") String customerAddress);

    List<WarningAlarm> selectAllWarningAlarmHistory(@Param("imei")String imei, @Param("spId")String spId);
}
